#-*- coding: utf-8 -*-
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.conf import settings
from django.conf.urls import include, patterns, url

admin.autodiscover()

urlpatterns = patterns('eve_scm.views',
    url(r'^$', 'index', name='index'),
    url(r'^home/$', 'scm_home', name='scm_home'),
    url(r'^boot/$', 'boot', name='boot'),
    #url(r'^$', 'index' , name='index'),
    #url(r'^index', 'index' , name='index'),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^shoplist/', include('shoplist.urls')),
    url(r'^BPCreator/', include('BPCreator.urls')),
    url(r'^assets/', include('apiManager.urls')),
    url(r'^auth/', include('scm_auth.urls')),
   
)

urlpatterns +=patterns('',
    url(r'^login/$', 'django.contrib.auth.views.login'), 
    #url(r'^logout/$', 'django.contrib.auth.views.logout'),
    url(r'^logout/$', 'django.contrib.auth.views.logout'),
    
) 

if settings.DEBUG:
    import debug_toolbar
    
    urlpatterns += patterns('',
        url(r'^__debug__/', include(debug_toolbar.urls)),
    )



    
